projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9990621
)
[TOOLS] fix sizeof() usage in xc_core
author
Tim Deegan
<Tim.Deegan@xensource.com>
Mon, 26 Feb 2007 14:47:54 +0000
(14:47 +0000)
committer
Tim Deegan
<Tim.Deegan@xensource.com>
Mon, 26 Feb 2007 14:47:54 +0000
(14:47 +0000)
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
tools/libxc/xc_core.c
patch
|
blob
|
history
diff --git
a/tools/libxc/xc_core.c
b/tools/libxc/xc_core.c
index 5a23667667b8f665138e9919017bc30aa81a1f7c..7f6f0ee67a2da29cffdb4ea7e7c04b9ce13747cd 100644
(file)
--- a/
tools/libxc/xc_core.c
+++ b/
tools/libxc/xc_core.c
@@
-85,7
+85,7
@@
xc_core_strtab_init(void)
{
struct xc_core_strtab *strtab;
char *strings;
- strtab = malloc(sizeof(strtab));
+ strtab = malloc(sizeof(
*
strtab));
if ( strtab == NULL )
return NULL;